package JavaSE.d1;
//练习基本数据类型
public class Test9 {
    public static void main(String[] args) {
        boolean a = true;
        boolean a1 = false;
        char a2 =100;//2字节
        byte a3 =100;//1字节
        short a4 =100;//2字节
        int a5 =100;//4字节
        long a6 =100L;//8字节，带不带L都行
        float a7 =100.0f;//4字节单精度浮点，是小数必须带f
        double a8 =100;//8字节双精度浮点，可以不带d

        //低精度向高精度赋值
        a8=a7;
        a7=a6;
        a6=a5;
        a5=a4;
        a4=a3;


        System.out.println(a7);
    }
}